package com.dao;

import com.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2019/1/4 0004.
 */
public interface LocationDao {

    int findLocationCount(@Param("userId")Integer userId,@Param("address")String address);

    int addLocation(@Param("userId")Integer userId,@Param("latitude") String latitude,@Param("longitude") String longitude,@Param("address") String address);

    List<CityInfo> findCity();

    List<BirthPlaceInfo> findBirthPlace();

    List<SubjectInfo> findSubject();

    //查询定位城市是否存在
    Integer findCityIsBeing(@Param("cityName") String cityName);

    //查询学校表
    List<SchoolInfo> schoolList(@Param("cityId") Integer cityId);

    List<SchoolInfo> schoolList1();

    List<AreaInfo> findArea(@Param("cityId")Integer cityId);

    List<DistrictInfo> findDistrict(@Param("cityId") Integer cityId);

    List<MajorInfo> findMajor();
}
